package com.caishi.lkx.exam.records.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.caishi.lkx.exam.ienum.type.QuestionType;
import com.caishi.lkx.exam.records.RecordsCollectType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Map;

@Getter
@Setter
@Schema(title = "试题提交内容")
public class NewRecordsDtoItem {
    /**
     * 大题类型
     */
    @Schema(title = "大题类型")
    @JSONField(serializeUsing = QuestionType.QuestionTypeSerializer.class)
    private QuestionType qt;

    /**
     * 试题类型名称
     * 为空时表示标准大题类型
     */
    @Schema(title = "试题类型名称 为空时表示标准大题类型")
    private String tr;

    /**
     * 章节id
     */
    @Schema(title = "章节id")
    private String cid;

    /**
     * 章节类型 0章节 1试卷类型 2每日一练
     */
    @Schema(title = "集合类型")
    private RecordsCollectType ct;

    /**
     * 章节名称
     */
    @Schema(title = "章节名称")
    private String cn;

    /**
     * 题干数据冗余
     */
    @Schema(title = "题干数据冗余")
    private List<Map<String, Object>> st;

    @Schema(title = "用户答案")
    private Object as;

    @Schema(title = "试题签名")
    private String sn;

    /**
     * 做题时间
     */
    @Schema(title = "做题时间")
    private long t;

}
